<!-- BEGIN: PAGECONTENT -->
        <script type="text/javascript">
            $(document).ready(function() {
                //validate signup form on keyup and submit
                $("#admin_form").validate({
                    rules: {
                    	Organization: {
                            required: true,
                            maxlength: 500
                        },
                        Email: {
                            required: true,
                            email: true
                        }
                    },
                    messages: {
                    	Organization: {
                            required: "Vui lòng nhập vào tên tổ chức.",
                            maxlength: "Tên tổ chứ không nên dài hơn 500 ký tự"
                        },
                        Email: {
                            required: "Vui lòng nhập vào Email.",
                            email: "Vui lòng nhập vào một Email chính xác."
                        }
                    }
                });
                
                //Initialise FancyBox Modal window:
                $("a.fancy").fancybox({
                    'titlePosition' : 'inside'
                });
                
	             $("#error").fancybox({
	                'titlePosition' : 'inside'
	             });
                
            });
        </script>
        <script type="text/javascript">
			function BrowseServer()
			{
			    var finder = new CKFinder();
			    finder.basePath = 'Images/icon';
			    finder.selectActionFunction = SetFileField;
			    finder.popup();
			}
			
			// This is a sample function which is called when a file is selected in CKFinder.
			function SetFileField( fileUrl )
			{
			    $("#ImageLink").val(fileUrl);
                $("a.fancy").attr("href", fileUrl);
                $("#upload-img").attr("src",fileUrl);
			}
	    </script>
        <div class="form-content-page">
            <section>
                <form class="block-content form" id="admin_form" method="post" action="submit.php?ctrl={CONTROLLER}&act={ACTION}">
                    <h2>Thông tin tổ chức</h2>
                    <!-- BEGIN: FORMITEM -->
                    <fieldset>
                        <input type="hidden" name="ID" id="ID" value="{FORMITEM.ID}">
                        <p>
                            <label for="simple-required">Tên tổ chức: </label>
                            <input type="text" name="Organization" id="Organization" value="{FORMITEM.Organization}" class="full-width">
                        </p>
                        <p>
                            <label for="simple-required">Địa chỉ: </label>
                            <input type="text" name="Address" id="Address" value="{FORMITEM.Address}" class="full-width">
                        </p>
                        <p>
                            <label for="simple-required">Số điện thoại: </label>
                            <input type="text" name="PhoneNumber" id="PhoneNumber" value="{FORMITEM.PhoneNumber}" class="full-width">
                        </p>
                        <p>
                            <label for="simple-required">Số fax: </label>
                            <input type="text" name="FaxNumber" id="FaxNumber" value="{FORMITEM.FaxNumber}" class="full-width">
                        </p>
                        <p>
                            <label for="simple-required">Email: </label>
                            <input type="text" name="Email" id="Email" value="{FORMITEM.Email}" class="full-width">
                        </p>
                        <p>
                            <label for="simple-required">Hotline: </label>
                            <input type="text" name="Hotline" id="Hotline" value="{FORMITEM.Hotline}" class="full-width">
                        </p>
                        <p>
                            <label for="simple-required">Tọa độ Google Map: </label>
                            <input type="text" name="MapAddress" id="MapAddress" value="{FORMITEM.MapAddress}" class="full-width">
                        </p>
                        
                    </fieldset>
                    <fieldset class="grey-bg no-margin">
                        <p class="input-with-button" align="center">
                            <button type="submit"> Hoàn thành </button>
                        </p>
                    </fieldset>
                    <!-- END: FORMITEM -->
                </form>
            </section>
        </div>
<!-- END: PAGESITE -->